package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 评语回复实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "appraise_comment", catalog = "abc")
public class AppraiseComment implements java.io.Serializable {

    // 标志
    private Long apcid;
    // 评语id
    private Long apid;
    // 回复的用户id
    private Long cuid;
    // 职务+名称  或  学生名+关系
    private String cname;
    // 内容
    private String content;
    // 时间
    private Timestamp cdate;
    // 头像
    private String headimg;
    
    /** default constructor */
    public AppraiseComment() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "apcid", unique = true, nullable = false)
    public Long getApcid() {
        return apcid;
    }

    public void setApcid(Long apcid) {
        this.apcid = apcid;
    }
    @Column(name = "apid", nullable = false, length = Constant.num_20)
    public Long getApid() {
        return apid;
    }

    public void setApid(Long apid) {
        this.apid = apid;
    }
    @Column(name = "cuid", nullable = false, length = Constant.num_20)
    public Long getCuid() {
        return cuid;
    }

    public void setCuid(Long cuid) {
        this.cuid = cuid;
    }
    
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

}